﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EssIL
{
    public static class ClassUtility<T>
        where T : class
    {
        private static volatile bool cctorRun = false;

        public static void EnsureClassConstructorRun(){
            if (!cctorRun)
            {
                cctorRun = true;
                System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(typeof(T).TypeHandle);
            }
        }
    }
}
